//
//  RGBottomCommentToolBar.m
//  RedGrass
//
//  Created by wukong on 2019/2/17.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import "RGBottomCommentToolBar.h"

@interface RGBottomCommentToolBar()

@property (strong, nonatomic) UIView *line;
@property (strong, nonatomic) UILabel *contentLabel;
@property (strong, nonatomic) UIButton *clickBtn;

@end

@implementation RGBottomCommentToolBar

-(instancetype)initWithFrame:(CGRect)frame{
    if(self = [super initWithFrame:frame]){
        [self initSubView];
    }
    return self;
}

-(void)initSubView{
    
    [self addSubview:self.line];
    [_line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.and.right.mas_equalTo(self).mas_offset(0);
        make.top.mas_equalTo(self).mas_offset(0);
        make.height.mas_equalTo(0.5);
    }];
    
    
    [self addSubview:self.contentLabel];
    [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self).mas_offset(0);
        make.left.mas_equalTo(self).mas_offset(20);
    }];
}


#pragma mark  - getter

-(UIView *)line{
    if(!_line){
        _line = [[UIView alloc]init];
        _line.backgroundColor = UICOLOR_WITH_RGBINT(0x999999);
    }
    return _line;
}

-(UILabel *)contentLabel{
    if(!_contentLabel){
        _contentLabel = [[UILabel alloc]init];
        _contentLabel.font = FONT(customFontName, 15);
        _contentLabel.textColor = UICOLOR_WITH_RGBINT(0x999999);
        _contentLabel.text = @"喜欢就要说出来";
    }
    return _contentLabel;
}

-(UIButton *)clickBtn{
    if(!_clickBtn){
        _clickBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    }
    return _clickBtn;
}

@end
